package com.xiao.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private long uid;

    private String uname;

    private String upassword;

    private String nickname;

    private String identity;

    private String tel;

    private String userimg;

    private int gradeid;

    private int subjectid;

    public User(long uid, String nickname, String identity, int gradeid, int subjectid) {
        this.uid = uid;
        this.nickname = nickname;
        this.identity = identity;
        this.gradeid = gradeid;
        this.subjectid = subjectid;
    }

    public User(long uid) {
        this.uid = uid;
    }
}
